<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBookListsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('book_lists', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('book_id')->comment('书籍id')->nullable();
            $table->string('current_update_year')->comment('当前更新年份')->nullable();
            $table->string('current_update_month')->comment('当前更新月份')->nullable();
            $table->string('short_code')->comment('书籍短码')->nullable();
            $table->string('upload_code')->comment('下载文件的code(猜测应该是这个意思)')->nullable();
            $table->string('magazine_type')->comment('杂志分类')->nullable();
            $table->string('upload_size')->comment('下载文件的大小(猜测应该是这个意思)')->nullable();
            $table->string('book_img_s')->comment('书籍封面s')->nullable();
            $table->string('book_img_m')->comment('书籍封面m')->nullable();
            $table->string('book_img_l')->comment('书籍封面l')->nullable();
            $table->string('book_img_z')->comment('书籍封面z')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('book_lists');
    }
}
